<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Alterar Artista</title>
        <script src="artista.js"></script>
    </h:head>       
    <h:body>
        <ui:include src="../menu.xhtml" />
        <div id="corpo">
            <f:view>
                <h:form onsubmit="return validarCampos(this);">
                    <fieldset>
                        <legend>Artista: #{artistaBean.artista.nome}</legend>
                        <h:inputHidden value="#{artistaBean.artista.codigo}"></h:inputHidden>
                        <table>
                            <tr>
                                <td>Nome:</td>
                                <td><h:inputText size="76" value="#{artistaBean.artista.nome}" id="txtNome"></h:inputText></td>
                            </tr>
                            <tr>
                                <td>Telefone:</td>
                                <td>
                                    <h:inputText value="#{artistaBean.artista.telefone}" id="txtTelefone"></h:inputText>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <h:commandButton value="Alterar" action="#{artistaBean.alterar}"></h:commandButton>
                                </td>
                            </tr>
                        </table>
                        <br></br>
                        <h:outputText escape="false" value="#{artistaBean.retornoHtml}" />  
                    </fieldset>
                </h:form>
                <ui:include src="../rodape.xhtml" />
            </f:view>
        </div>
    </h:body>
</html>